<!DOCTYPE html>
<html lang="zh"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>课程管理</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/css/input_tags.css"/>
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-multiselect.css" type="text/css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
<!--    <link rel="stylesheet" href="/css/customerManager/addCustomerPool.css"/>-->
<!--    <link rel="stylesheet" href="/css/customerManager/customerPoolForm.css"/>-->
    <style>
        .title{
            font-weight: bold;
            font-size: 14px;
        }
        #courseContactList{
            max-height: 200px;
            overflow: hidden;
            overflow-y: auto;
        }
        #giftList + .btn-group .multiselect-container>li>a>label {
            padding-left: 24px;
        }

        #giftList + .btn-group input[type=checkbox] {
            margin: 12px -20px 0 !important;
        }
    </style>
</head>
<body>

<div class="container-fluid customer-page">
    <div class="card">
        <div class="card-header">
            <h1>课程管理列表</h1>
        </div>
        <div class="card-body">
            <table id="courseArrangeTable"></table>
        </div>
    </div>
</div>
<div class="modal fade" id="staticBackdrop"  data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style="width: 100%;height: 100%;">
    <div class="modal-dialog" style="width: 75%">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h5 class="modal-title" id="staticBackdropLabel">课程报名表</h5>
                <input id="productCode" name="productCode" type="hidden">
                <input id="courseServiceTimes" name="courseServiceTimes" type="hidden">
            </div>
            <div class="modal-body" >
                <div class="row" style="padding: 0 20px;box-sizing: border-box">
                    <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <p class="title">课程信息</p>
                        <div class="form-group col-lg-5 col-md-5 col-sm-12 col-xs-12">
                            <span>课程名称：</span>
                            <span id="courseName"></span>
                        </div>
                        <div class="form-group col-lg-7 col-md-7 col-sm-12 col-xs-12">
                            <span>参课日期：</span>
                            <span id="courseTime"></span>
                        </div>
                        <div class="form-group col-lg-6 col-md-6 col-sm-12 col-xs-12">
                            <span>参课地址：</span>
                            <span id="courseAddress"></span>
                        </div>
                    </div>
                    <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <p class="title">报名信息</p>
                        <div class="form-group col-lg-6 col-md-6 col-sm-6 col-xs-6" style="display: flex">
                            <span> 客户名称：</span>
                            <div style="width:200px">
                                <select class="form-control" id="customerId" onchange="changeProducts()" name="customerId" type="text" title="请选择" >
                                </select>
                            </div>
                        </div>
                        <div class="form-group col-lg-6 col-md-6 col-sm-6 col-xs-6" style="display: flex">
                            <label class="control-label " style="margin-right: 10px">产品名称:</label>
                            <div class="form-content">
                                <select multiple="multiple" id="giftList"></select>
                            </div>
                            <!--                                <select class="form-control" onchange="checkServiceTimes()" id="productNums" name="productNums">-->
                            <!--                                </select>-->

                        </div>
                    </div>
                    <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <p class="title" style="height: 30px">参会人信息
                            <button type="button" class="btn btn-primary pull-right" style="width: auto;height: 30px;line-height: 25px;padding:0 10px;" onclick="addCourseContact()">添加其他参课人</button>
                        </p>
                        <div id="courseContactList" class="clearfix">
                            <div class="list" >
                                <div class="form-group col-lg-6 col-md-6 col-sm-6 col-xs-12" style="display: flex">
                                    <span>参课人：</span>
                                    <input type="text"  class="form-control usercourse" style="width: 60%" >
                                </div>
                                <div class="form-group col-lg-5 col-md-5 col-sm-5 col-xs-11" style="display: flex">
                                    <span>联系方式：</span>
                                    <input type="text"  class="form-control phone" style="width: 60%" maxlength="11">
                                </div>
                                <div class="form-group col-lg-1 col-md-1 col-sm-1 col-xs-1" style="display: flex">
                                    <button type="button" id="delBtn" class="btn btn-primary pull-right" style="width: auto;height: 30px;line-height: 25px;padding:0 10px;" onclick="del()">删除参课人</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <p class="title">备注信息</p>
                        <textarea class="form-control" id="exampleFormControlTextarea1" maxlength="100"></textarea>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" onclick="submit()">提交 </button>
                    <button type="button" class="btn btn-primary" onclick="resetBtn()">重置</button>
                </div>
            </div>
        </div>

    </div>

</div>


</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!-- 图表 -->
<script type="text/javascript" src="/js/echarts.min.js"></script>
<script src="/js/crm/common/common.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/coursearrange/user/userCourseArrange.js"></script>
</html>